<?php
include 'mySQLConnect.php';
?>


    <div class="widget"><h3>Hãng điện thoại</h3>
        <ul>
            <?php
            $sql3 = "SELECT * FROM category";

            $result3 = mysql_query($sql3);
            while ($row3 = mysql_fetch_array($result3)) {
                ?>
                <li class="cat-item"><a href="searchProduct.php?type=cate&cat_id=<?php echo $row3['id'] ?>">
                        <?php echo urldecode($row3['cat_name']) ?>
                    </a>
                </li>
            <?php
            }
            ?>
        </ul>
    </div>

    <div class="widget" id="top-rated-2"><h3>Tìm Kiếm Nhanh</h3>
        <div class="widget search"><h4>Mức Giá</h4>
            <ul>
                <li class="cat-item cat-item-62">
                    <a href="searchProduct.php?type=price&pStart=0&pEnd=1000000">Dưới 1.000.000 VND</a>
                </li>
                <li class="cat-item cat-item-62">
                    <a href="searchProduct.php?type=price&pStart=1000000&pEnd=3000000">1.000.000 - 3.000.000 VND</a>
                </li>
                <li class="cat-item cat-item-62">
                    <a href="searchProduct.php?type=price&pStart=3000000&pEnd=5000000">3.000.000 - 5.000.000 VND</a>
                </li>
                <li class="cat-item cat-item-62">
                    <a href="searchProduct.php?type=price&pStart=5000000&pEnd=10000000">5.000.000 - 10.000.000 VND</a>
                </li>
                <li class="cat-item cat-item-62">
                    <a href="searchProduct.php?type=price&pStart=10000000">Trên 10.000.000 VND</a>
                </li>
            </ul>
        </div>
    </div>

<?php
include 'mySQLClose.php';
?>